#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   22:25
# Author     : Y4
# Site       : 
# File       : 02 模块-import.py
# Software   : PyCharm

list = [1, 2, 3, 4, 5]
import utils.calculate as calculate

# 调用函数
sum = calculate.add(*list)  # 拆分list
print(sum)

# 调用变量
num = calculate.num
print(num)

# 调用类
p = calculate.Person("小明")
p.test()    # 类中的普通方法
calculate.Person.test1()        # 类方法
